package com.jxmcloud.business.cut.model.database;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.xlcloud.platform.util.DateUtil;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName("user_draw_money_log")
public class DBUserDrawMoneyLog {
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;
    private Integer uid;
    private String account;
    @TableField("`activity_id`")
    private Integer activityId;
    private Integer money;
    @TableField("`add_time`")
    @DateTimeFormat(pattern = DateUtil.FMT_YYYYMMDD_HHmmss_ZG)
    @JsonFormat(pattern = DateUtil.FMT_YYYYMMDD_HHmmss_ZG, timezone = DateUtil.TZ_GMT8)
    @JSONField(format = DateUtil.FMT_YYYYMMDD_HHmmss_ZG)
    private Date addTime;
}
